import request from '@/utils/request';

// get review info
export function getReviewInfo(params) {
  return request({
    url: 'api/equipment/getbycontrollerinfo',
    method: 'get',
    params: params
  });
}

// get machine info
export function getMachineInfo(params) {
  return request({
    url: 'api/equipment/get_equipment_info',
    method: 'get',
    params: params
  });
}

// get machine info
export function deleteDevice(params) {
  return request({
    url: 'api/equipment/delete',
    method: 'get',
    params: params
  });
}

// update machine info
export function updateDevice(params) {
  return request({
    url: 'api/equipment/update',
    method: 'post',
    data: params
  });
}
